void main() {
  getUserInfo(1, address: '北京海淀');
  testFunc(1, location: '北京海淀', city: '深圳');
}

getUserInfo(int id, {String? name, int? age, String? sex, String? address}) {
  print('ID: $id, 姓名: $name, 年龄: $age, 性别: $sex, 地址: $address');
}

testFunc(int id, {String? location = '北京海淀', String city = '深圳'}) {
  print('ID: $id, 位置: $location, 城市: $city');
}
